<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title><?php if(isset($title)){echo $title.' - ';}echo 'gongshw\'s microblog system';?></title>
<link type="text/css" rel="stylesheet"
	href="<?php echo base_url('public/bootstrap/css/bootstrap-responsive.css')?>" />
<link type="text/css" rel="stylesheet"
	href="<?php echo base_url('public/bootstrap/css/bootstrap.min.css')?>" />
<link type="text/css" rel="stylesheet"
	href="<?php echo base_url('public/style/common.css')?>" />
<link type="text/css" rel="stylesheet"
	href="<?php echo base_url('public/toastr/toastr.css')?>" />
<link type="text/css" rel="stylesheet"
	href="<?php echo base_url('public/style/animate.min.css')?>" />
<link type="text/css" rel="stylesheet"
	href="<?php echo base_url('public/style/follow.css')?>" />
<script type="text/javascript"
	src="<?php echo base_url("public/script/common.js")?>"></script>
<script type="text/javascript"
	src="<?php echo base_url("public/script/search.js")?>"></script>
<script type="text/javascript"
	src="<?php echo base_url("public/script/invite.js")?>"></script>
<script type="text/javascript"
	src="<?php echo base_url("public/script/notification.js")?>"></script>
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container" style="width: 1170px">
				<a class="brand" href="<?php echo base_url()?>"> Gongshw's Microblog
					System </a>
					
				
				<?php if (isset($user_info)): ?>
                <ul class="nav">
 				 	<li><a href="<?php echo base_url()?>">Home</a></li>
  					<li><a href="<?php echo base_url('index.php/explore')?>">Explore</a></li>
				</ul>
				<?php endif; ?>

				<ul class="nav pull-right">

					<li>
						<form class="navbar-search">
							<input type="text" class="search-query"
								onkeydown="to_search(event)" placeholder="Search">
						</form>
					</li>
					<li><a href="#"><i class="icon-search"></i></a></li>
				
				<?php if (isset($user_info)): ?>
				<!--  	<li><a href="#" id="post-btn"><i class="icon-pencil"></i> <strong>Post <?php if (isset($blog_name)) echo 'to '.$blog_name;?></strong></a>
					</li>-->
					<li class="divider-vertical"></li>
					<li><a href="#"><i class="icon-user"></i><?php echo $user_info['uname']?></a>
					</li>
					<li><a href="<?php echo base_url('index.php/user/logout')?>"> <i
							class="icon-off"></i>Sign out
					</a></li>
				<?php else :?>
					<li><a href="<?php echo base_url("index.php/user/register")?>">Sign
							up</a></li>
					<li class="divider-vertical"></li>
					<li><a href="<?php echo base_url("index.php/user/login")?>">Sign in</a>
					</li>
				<?php endif; ?>
				</ul>
			</div>
		</div>
	</div>